﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;
using Sketchial.UIProcess.CustomControls;

namespace Sketchial.UIProcess
{
    public class BoxUserControl : UserControl
    {
        public BoxUserControl()
        {
            
        }
        protected override void Render(System.Web.UI.HtmlTextWriter writer)
        {
            BoxPanel bp = new BoxPanel();
            bp.ID = base.ID;
            //foreach (Control item in base.Controls)
            //{
            //    bp.Controls.Add(item);
            //}
            for (int i = 0; i <= base.Controls.Count - 1; i++)
            {
                bp.Controls.Add(base.Controls[i]);
            }
            base.Controls.Clear();
            base.Controls.Add(bp);
            base.Render(writer);
        }
    }
}
